/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ActionForm;

import java.util.Collection;
import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;


/**
 *
 * @author Maestria
 */
public class mobLisHojaRutaActionForm extends org.apache.struts.action.ActionForm {
    
    private String name;

    private int number;
    private int strIdCliente;
    private Collection arrTipoCliente;
    private String strNomCliente;
    private String strApeCliente;
    private Collection  arrTipoDocumento;
    private String strNumDocumento;
    /**
     * @return
     */
    public mobLisHojaRutaActionForm(HttpServletRequest request) {

        strNomCliente= "";
        strApeCliente= "";
        strNumDocumento= "";
             

    }

     public Collection getArrTipoCliente() {
        return arrTipoCliente;
    }

    public void setArrTipoCliente(Collection arrTipoCliente) {
        this.arrTipoCliente = arrTipoCliente;
    }

    public Collection getArrTipoDocumento() {
        return arrTipoDocumento;
    }

    public void setArrTipoDocumento(Collection arrTipoDocumento) {
        this.arrTipoDocumento = arrTipoDocumento;
    }

    public String getStrApeCliente() {
        return strApeCliente;
    }

    public void setStrApeCliente(String strApeCliente) {
        this.strApeCliente = strApeCliente;
    }

    public int getStrIdCliente() {
        return strIdCliente;
    }

    public void setStrIdCliente(int strIdCliente) {
        this.strIdCliente = strIdCliente;
    }

    public String getStrNomCliente() {
        return strNomCliente;
    }

    public void setStrNomCliente(String strNomCliente) {
        this.strNomCliente = strNomCliente;
    }

    public String getStrNumDocumento() {
        return strNumDocumento;
    }

    public void setStrNumDocumento(String strNumDocumento) {
        this.strNumDocumento = strNumDocumento;
    }

    public String getName() {
        return name;
    }

    /**
     * @param string
     */
    public void setName(String string) {
        name = string;
    }

    /**
     * @return
     */
    public int getNumber() {
        return number;
    }

    /**
     * @param i
     */
    public void setNumber(int i) {
        number = i;
    }

    /**
     *
     */
    public mobLisHojaRutaActionForm() {
        super();
        // TODO Auto-generated constructor stub
    }

    /**
     * This is the action called from the Struts framework.
     * @param mapping The ActionMapping used to select this instance.
     * @param request The HTTP Request we are processing.
     * @return
     */
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        ActionErrors errors = new ActionErrors();
        if (getName() == null || getName().length() < 1) {
            errors.add("name", new ActionMessage("error.name.required"));
            // TODO: add 'error.name.required' key to your resources
        }
        return errors;
    }
}
